package com.bdi.mqtt_broker.model;

import com.alibaba.fastjson.JSONObject;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author WangNing yogehaoren@gmial.com <br>
 * @since 1.0
 * 存储会话
 */
@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor
public class SessionStore {

    private String brokerId;

    private String clientId;

    private String channelId;

    public static String toJsonString(SessionStore sessionStore){
        return JSONObject.toJSONString(sessionStore);
    }

}
